// 获取url参数
function getParameter(param) {
	var query = window.location.search;
	var iLen = param.length;
	var iStart = query.indexOf(param);
	if (iStart == -1)
		return "";
	iStart += iLen + 1;
	var iEnd = query.indexOf("&", iStart);
	if (iEnd == -1)
		return query.substring(iStart);
	return query.substring(iStart, iEnd);
}
function getNextDay(d, i) {
	d = new Date(d);
	d = +d + 1000 * 60 * 60 * 24 * i;
	d = new Date(d);
	return d;

}
function getLastDay(d, i) {
	d = new Date(d);
	d = +d - 1000 * 60 * 60 * 24 * i;
	d = new Date(d);
	return d;
}